package models

import (
    "time"
)

//Stackinfo : stack db struct
type Stackinfo struct {
     ID   int `form:"id" json:"id" orm:"id"`
     Hostuuid string  `form:"hostuuid" json:"hostuuid" orm:"column(HOSTUUID)"`
     Node1  string    `form:"node1" json:"node1" orm:"null;column(NODE1)"`
     Node2  string    `form:"node2" json:"node2" orm:"null;column(NODE2)"`
     Node3  string    `form:"node3" json:"node3" orm:"null;column(NODE3)"`
     Value  string    `form:"value" json:"value" orm:"null;column(VALUE)"`
     Creationtime  time.Time `form:"creationtime" json:"creationtime" orm:"null;column(CREATIONTIME)"`
}

//Portinfo : port db struct
type Portinfo struct {
     ID   int `form:"id" json:"id" orm:"id"`
     Hostuuid string  `form:"hostuuid" json:"hostuuid" orm:"column(HOSTUUID)"`
     Node1  string    `form:"node1" json:"node1" orm:"null;column(NODE1)"`
     Node2  string    `form:"node2" json:"node2" orm:"null;column(NODE2)"`
     Node3  string    `form:"node3" json:"node3" orm:"null;column(NODE3)"`
     Value  string    `form:"value" json:"value" orm:"null;column(VALUE)"`
     Creationtime  time.Time `form:"creationtime" json:"creationtime" orm:"null;column(CREATIONTIME)"`
}

//Interfaceinfo : interface db struct
type Interfaceinfo struct {
     ID   int `form:"id" json:"id" orm:"id"`
     Hostuuid string  `form:"hostuuid" json:"hostuuid" orm:"column(HOSTUUID)"`
     Node1  string    `form:"node1" json:"node1" orm:"null;column(NODE1)"`
     Node2  string    `form:"node2" json:"node2" orm:"null;column(NODE2)"`
     Node3  string    `form:"node3" json:"node3" orm:"null;column(NODE3)"`
     Value  string    `form:"value" json:"value" orm:"null;column(VALUE)"`
     Creationtime  time.Time `form:"creationtime" json:"creationtime" orm:"null;column(CREATIONTIME)"`
}

//Cpuinfo : cpu db struct
type Cpuinfo struct {
     ID   int `form:"id" json:"id" orm:"id"`
     
     Hostuuid string  `form:"hostuuid" json:"hostuuid" orm:"column(HOSTUUID)"`
     Node1  string    `form:"node1" json:"node1" orm:"null;column(NODE1)"`
     Node2  string    `form:"node2" json:"node2" orm:"null;column(NODE2)"`
     Node3  string    `form:"node3" json:"node3" orm:"null;column(NODE3)"`
     Value  string    `form:"value" json:"value" orm:"null;column(VALUE)"`
     Creationtime  time.Time `form:"creationtime" json:"creationtime" orm:"null;column(CREATIONTIME)"`
}

//Memoryinfo : memory db struct
type Memoryinfo struct {
     ID   int `form:"id" json:"id" orm:"id"`
     Hostuuid string  `form:"hostuuid" json:"hostuuid" orm:"column(HOSTUUID)"`
     Node1  string    `form:"node1" json:"node1" orm:"null;column(NODE1)"`
     Node2  string    `form:"node2" json:"node2" orm:"null;column(NODE2)"`
     Node3  string    `form:"node3" json:"node3" orm:"null;column(NODE3)"`
     Value  string    `form:"value" json:"value" orm:"null;column(VALUE)"`
     Creationtime  time.Time `form:"creationtime" json:"creationtime" orm:"null;column(CREATIONTIME)"`
}

//Macinfo : mac db struct
type Macinfo struct {
     ID   int `form:"id" json:"id" orm:"id"`
     Hostuuid string  `form:"hostuuid" json:"hostuuid" orm:"column(HOSTUUID)"`
     Node1  string    `form:"node1" json:"node1" orm:"null;column(NODE1)"`
     Node2  string    `form:"node2" json:"node2" orm:"null;column(NODE2)"`
     Node3  string    `form:"node3" json:"node3" orm:"null;column(NODE3)"`
     Value  string    `form:"value" json:"value" orm:"null;column(VALUE)"`
     Creationtime  time.Time `form:"creationtime" json:"creationtime" orm:"null;column(CREATIONTIME)"`
}

//Nodeinfo : node struct
type Nodeinfo struct {
   Node1  string
   Node2  string
   Node3  string 
   
}